package cn.usian.order.controller;

import cn.usian.jyzx.model.vo.common.Result;
import cn.usian.jyzx.model.vo.common.ResultCodeEnum;
import cn.usian.jyzx.model.vo.h5.TradeVo;
import cn.usian.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.List;

@RestController
@RequestMapping("api/order/orderInfo")
public class OrderController {
    @Autowired
    OrderService orderService;
    @GetMapping("auth/trade")
    public Result trade(){
       TradeVo tradeVo =  orderService.trade();
       return Result.build(tradeVo, ResultCodeEnum.SUCCESS);

    }
}
